﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using JM.JCY.Common;
using NCS.IConnect.PolicyInjection.CallHandlers;
using JM.JCY.BusinessComponent;
using JM.JCY.BusinessEntity;
using JM.JCY.DataAccess;
namespace JM.JCY.BusinessFacade
{
    public class NewsBF : JCYBusinessFacadeBase<NewsBC>, INews
    {
        public NewsBF()
            : base(new NewsBC())
        {
        }

        public NewsDataSet.T_AnnouncementDataTable GetNews(string subject, string category, string status, DateTime? startDate, DateTime? endDate)
        {
            return this.BusinessComponent.GetNews(subject, category, status, startDate, endDate);
        }

        public void UpdateNews(NewsDataSet.T_AnnouncementDataTable dt)
        {
            this.BusinessComponent.UpdateNews(dt);
        }

        public NewsDataSet.T_NewsDataTable GetNewsForHome(string category, int count)
        {
            return this.BusinessComponent.GetNewsForHome(category, count);
        }

        public NewsDataSet.T_AnnouncementDataTable GetNewsById(int newsId)
        {
            return this.BusinessComponent.GetNewsById(newsId);
        }

        public NewsDataSet.T_AnnouncementDataTable GetSpeechForHome(int count)
        {
            return this.BusinessComponent.GetSpeechForHome(count);
        }

    
    }
}
